package com.ifacebox.face.track.model;

/**
 * @author znn
 */
public class FaceTrack {
    private int id;
    private byte[] image;
    private byte[] data;

    public FaceTrack() {
        super();
    }

    public FaceTrack(int id, byte[] image, byte[] data) {
        this();
        this.setId(id);
        this.setImage(image);
        this.setData(data);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public byte[] getImage() {
        return image;
    }

    public void setImage(byte[] image) {
        this.image = image;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof FaceTrack) {
            return id == ((FaceTrack) obj).getId();
        }
        return false;
    }
}
